package com.hzz.framework.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "cache")
@Data
public class EhCacheProperties {
    String folder;
    ConfigCache defaultCache;
    ConfigCache queueCache;

    @Data
    public static class ConfigCache {
        Integer heapSize = 10;
        Integer diskSize = 100;
        Boolean diskPersistent = false;
        Integer expiryMinutes = 30;
    }
}
